package com.cryptooj.project.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 *  题目
 * */
@Data
public class Question implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;

    private String title;

    private String content;

    // 标签列表（json数组格式）
    private String tags;

    private String answer;

    private Integer submitNum;

    private Integer acceptedNum;

    // 判题用例（json数组格式）
    private String judgeCase;

    // 判题对象（json对象格式）
    private String judgeConfig;

    private Integer thumbNum;

    private Integer favourNum;

    // 题目创建人id
    private Long userId;

    private Date createTime;

    private Date updateTime;

    @TableLogic
    private Integer isDelete;

    @TableField(exist = false)
    private static final Long serialVersionUID = 1L;
}
